package com.yootk.vo;

public class Book {
    private String title;
    private double price;

    // 此时无参构造方法、Setter、Getter方法定义，略...
    public Book(String title, double price) {
        this.title = title;
        this.price = price;
    }

    @Override
    public String toString() {
        return "【图书】名称：" + this.title + "、价格：" + this.price;
    }
}
